package edu.gyc.appshiro.controller;

import edu.gyc.appshiro.model.Student;
import edu.gyc.appshiro.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    StudentService studentService;

    @RequestMapping("/hi")
    public String hi() {
        return studentService.list().toString();
    }
}
